package ddd1;

public class work5 {
    public static void main(String[] args) {
        String s1 = "abcdefghijk";
        System.out.println(turnUp(s1,0,9));
    }
    public static String turnUp(String str,int a,int b) {
        String s1 ="";
        for(int i=0;i<b-a;i++) {
            s1=s1.concat(String.valueOf(str.charAt(b-i-1)));
        }
        return s1;
    }
}
